package com.qfedu.demo;

import com.qfedu.config.SpringConfig;
import com.qfedu.pojo.Account;
import com.qfedu.service.AccountService;
import org.apache.commons.dbutils.QueryRunner;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.util.List;

public class Demo02 {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(SpringConfig.class);

        QueryRunner runner = applicationContext.getBean("runner", QueryRunner.class);
        QueryRunner runner1 = applicationContext.getBean("runner", QueryRunner.class);

        System.out.println(runner==runner1);
    }
}
